<!-- #section:basics/content.breadcrumbs -->
<!-- page specific plugin scripts -->
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="{{ url_for('index') }}">Home</a>
        </li>

        <li>
            <a href="javascript:">系统</a>
        </li>
        <li>
            <a href="{{ url_for('html', htm='user/list') }}">用户管理</a>
        </li>
        <li class="active">用户新增</li>
    </ul>
    <!-- /.breadcrumb -->
    <!-- /section:basics/content.breadcrumbs -->
</div>
<div class="page-content">
    <div class="page-content-area">
        <div class="page-header">
            <h1>
                用户管理
                <small>
                    <i class="ace-icon fa fa-angle-double-right"></i>
                    用户新增
                </small>
            </h1>
        </div>
                <!-- /.page-header -->
        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <form method="post" ng-submit="add($event)" class="form-horizontal" role="form">
                    <!-- #section:elements.form -->
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-username"> 用户名 </label>

                        <div class="col-sm-9">
                            <input type="text" id="form-username" placeholder="用户名" required  autofocus
                            app-required ng-model="user.name" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-password"> 密码 </label>

                        <div class="col-sm-9">
                            <input type="password" id="form-password" placeholder="密码" required
                            app-required ng-model="user.pwd" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-password">确认密码 </label>

                        <div class="col-sm-9">
                            <input type="password" id="form-password" placeholder="确认密码" required
                            app-required ng-model="user.repeat_pwd" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-realname"> 姓名 </label>

                        <div class="col-sm-9">
                            <input type="text" id="form-username" placeholder="姓名" required
                            app-required ng-model="user.real_name" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>
                    <div alerts data="alerts" ></div>
                    <div class="clearfix form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button class="btn btn-info">
                                <i class="ace-icon fa fa-check bigger-110"></i>
                                提交
                            </button>

                            &nbsp; &nbsp; &nbsp;
                            <a class="btn" href="{{ url_for('html', htm='user/list') }}">
                                <i class="ace-icon fa fa-undo bigger-110"></i>
                                返回
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>